from django.shortcuts import render_to_response
from django.template import RequestContext
from main.ajax_view import ajax_view


def home(request):
	return render_to_response("index.html", request.session, context_instance=RequestContext(request))



@ajax_view
def get_pos(request):

	files=open('positions','r')
	#position=linecache.getline('positions',1).strip()
	lines=files.readlines()
	position=float(lines[0])

	print ('Hola! %s') % (position)
	test={'car':'car1','position':position}
	return test